package com.xyoto.takeawayUser.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * user_offen_buy
 * @author 
 */
@Data
@ApiModel("常卖列表")
public class UserOffenBuy extends Base {

    @ApiModelProperty("商品id")
    private Integer shoppingId;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("购买次数（默认为0）")
    private Integer count;

    public void setCount(Integer count) {
        this.count = count == null ? 0 : count;
    }

}